package contracts

import org.springframework.cloud.contract.spec.Contract

Contract.make {
  request {
    url "/getUser"
    method GET()
  }

  response {
    status 200
    headers {
      contentType applicationJson()
    }
    body '''
            [{
                "userName"   : "user1",
                "userAge" : 10,
                "mobile":13411111111
            },
            {
                "userName"   : "user2",
                "userAge" : 20,
                "mobile":13422222222
            },
            {
                "userName"   : "user3",
                "userAge" : 30,
                "mobile":13433333333
            }]
        '''
  }
}